<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList, edu.student.models.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:if test="hasActionErrors()">
   <div class="errors">
      <s:actionerror/>
   </div>
</s:if>
<s:form action="viewFriendProfile.action" method="post" name="viewFriendProfile">
<table align="center">
<tr>
<td><img src="./images/<s:property value = "friend.image" />" alt="image text" width="150" height="175"/></td>
<td><table id="text">
   <tr><td>
    <s:textfield label = "Roll No "  value="%{searchBox}"  size="20" readonly="true" />
   <%-- <s:property value="%{searchBox}"/> --%>
   <s:textfield label = "Name "  value="%{friend.username}"  size="20" readonly="true" />
   </td></tr>
     <s:textfield label = "Date of Birth " value="%{friend.dob}"  size="20" readonly="true" />
     <s:checkbox name="friends"  label="Friend?" fieldValue="true" disabled="%{friends}" value="%{friends}"/>
     </table>
     
   <table id="text">
    <tr><td>Interests: &nbsp; &nbsp;<s:iterator value="friend.Interests"> &nbsp; <s:property value = "interestName" /></s:iterator></td></tr>
    <s:submit method="execute" value="Add as Friend" name="commandButton" disabled="%{friends}" key="" align="center"  id="submit_btn" onclick=" return clickst()" />
</table></td>
</table> 	
</s:form>
<s:form>



</s:form>
</body>
</html>